#include "mainwindow.h"
#include "ui_mainwindow.h"
#include "mylineedit.h"
#include <QDebug>

MainWindow::MainWindow(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::MainWindow)
{
    ui->setupUi(this);
    MyLineEdit* myLineEdit = new MyLineEdit(this);
    myLineEdit->move(100, 200);
}

MainWindow::~MainWindow()
{
    delete ui;
}

void MainWindow::keyPressEvent(QKeyEvent *event)
{
    qDebug() << "主窗口有按键被按下了" ;
}
